package cn.itcast.demo.dao;

import cn.itcast.demo.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: taft
 * @Date: 2018-12-11 11:17
 */
@FeignClient(value = "user-service",fallback = UserFeignClientFallback.class)
public interface UserFeignClient {

    @GetMapping("user/hello/{id}")
    User queryUserById(@PathVariable("id") Long id);
}
